/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package modules.legislation.datatypes;

import datatypes.Antenna;

/**
 *
 * @author Pieter Backaert
 */
public class AntennaAndDistance {
    private Antenna antenna;
    private double distance;

    public AntennaAndDistance(Antenna ant , double dis){
        antenna = ant;
        distance = dis;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final AntennaAndDistance other = (AntennaAndDistance) obj;
        if (this.antenna != other.antenna && (this.antenna == null || !this.antenna.equals(other.antenna))) {
            return false;
        }
        if (this.distance != other.distance) {
            return false;
        }
        return true;
    }

    public Antenna getAntenna() {
        return antenna;
    }

    public double getDistance() {
        return distance;
    }

    public void setAntenna(Antenna antenna) {
        this.antenna = antenna;
    }

    public void setDistance(double distance) {
        this.distance = distance;
    }


}
